package com.ruoyi.xsp.domain.api;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户管理对象 xsp_user
 * 
 * @author zhiminhu
 * @date 2021-01-22
 */
public class LoginUser
{
    private static final long serialVersionUID = 1L;



    /** 短号码 */
    @Excel(name = "短号码")
    private Long userCode;
    /** 验证码 */
    @Excel(name = "验证码")
    private String captcha;
    /** 登录账号 */
    @Excel(name = "登录账号")
    private String loginName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String email;
    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;
    /** 头像路径 */
    @Excel(name = "头像路径")
    private String avatar;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 密码 */
    private String password;

    /** 用户来源 微信:wx  qq:qq   sj:手机 */
    @Excel(name = "用户来源")
    private String source;

    /** 用户的OpenID */
    @Excel(name = "用户的OpenID")
    private String openId;

    /**  用户token */
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setUserCode(Long userCode)
    {
        this.userCode = userCode;
    }

    public Long getUserCode()
    {
        return userCode;
    }
    public void setLoginName(String loginName) 
    {
        this.loginName = loginName;
    }

    public String getLoginName() 
    {
        return loginName;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userCode", getUserCode())
            .append("loginName", getLoginName())
            .append("email", getEmail())
            .append("phonenumber", getPhonenumber())
            .append("password", getPassword())
            .toString();
    }
}
